export default {
  bind(el, binding) {
      if(typeof binding.value == 'string'){
      el.addEventListener('click',()=>{
        el.classList.add(binding.value);
        setTimeout(()=>{
          el.classList.remove(binding.value);
        },800)
      })
    }else{
      if(binding.value.css){
        el.addEventListener('click',()=>{
          el.classList.add(binding.value.css);
          setTimeout(()=>{
            el.classList.remove(binding.value.css);
          },binding.value.timeout || 800)
        })
      }
    }
  }
}
